package com.ruoyi.mes.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 质量数据信息对象 tb_quality
 * 
 * @author ruoyi
 * @date 2025-01-09
 */
public class Quality extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 质量数据唯一标识 */
    private Long dataId;

    /** 产品ID，外键关联产品表 */
    @Excel(name = "产品ID，外键关联产品表")
    private Long productId;

    /** 检验日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "检验日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date inspectionDate;

    /** 检验结果 */
    @Excel(name = "检验结果")
    private String inspectionResult;

    /** 不合格原因 */
    @Excel(name = "不合格原因")
    private String nonconformityReason;

    /** 处理措施 */
    @Excel(name = "处理措施")
    private String handlingMeasures;

    public void setDataId(Long dataId) 
    {
        this.dataId = dataId;
    }

    public Long getDataId() 
    {
        return dataId;
    }
    public void setProductId(Long productId) 
    {
        this.productId = productId;
    }

    public Long getProductId() 
    {
        return productId;
    }
    public void setInspectionDate(Date inspectionDate) 
    {
        this.inspectionDate = inspectionDate;
    }

    public Date getInspectionDate() 
    {
        return inspectionDate;
    }
    public void setInspectionResult(String inspectionResult) 
    {
        this.inspectionResult = inspectionResult;
    }

    public String getInspectionResult() 
    {
        return inspectionResult;
    }
    public void setNonconformityReason(String nonconformityReason) 
    {
        this.nonconformityReason = nonconformityReason;
    }

    public String getNonconformityReason() 
    {
        return nonconformityReason;
    }
    public void setHandlingMeasures(String handlingMeasures) 
    {
        this.handlingMeasures = handlingMeasures;
    }

    public String getHandlingMeasures() 
    {
        return handlingMeasures;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("dataId", getDataId())
            .append("productId", getProductId())
            .append("inspectionDate", getInspectionDate())
            .append("inspectionResult", getInspectionResult())
            .append("nonconformityReason", getNonconformityReason())
            .append("handlingMeasures", getHandlingMeasures())
            .toString();
    }
}
